package com.panshi.pojo;

import io.swagger.annotations.ApiModel;

import java.io.Serializable;
import java.util.Date;

@ApiModel("商品实体类")
public class Seckill implements Serializable {
    private Integer sid;    //商品id
    private String name;    //商品名称
    private String introduce; //介绍
    private Long price;     //商品价格
    private String inventory;//库存
    private Date start;     //开始时间
    private Date end;       //结束时间
    private Integer uid;    //上架商品的用户id

    public Seckill() {
    }

    public Seckill(Integer sid, String name, String introduce, Long price, String inventory, Date start, Date end, Integer uid) {
        this.sid = sid;
        this.name = name;
        this.introduce = introduce;
        this.price = price;
        this.inventory = inventory;
        this.start = start;
        this.end = end;
        this.uid = uid;
    }

    @Override
    public String toString() {
        return "Seckill{" +
                "sid=" + sid +
                ", name='" + name + '\'' +
                ", introduce='" + introduce + '\'' +
                ", price=" + price +
                ", inventory='" + inventory + '\'' +
                ", start=" + start +
                ", end=" + end +
                ", uid=" + uid +
                '}';
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getPrice() {
        return price;
    }

    public void setPrice(Long price) {
        this.price = price;
    }

    public String getInventory() {
        return inventory;
    }

    public void setInventory(String inventory) {
        this.inventory = inventory;
    }

    public Date getStart() {
        return start;
    }

    public void setStart(Date start) {
        this.start = start;
    }

    public Date getEnd() {
        return end;
    }

    public void setEnd(Date end) {
        this.end = end;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }
}
